package edu.java.homework.hw11.enums.solution.restaurant;

import edu.java.homework.hw11.enums.solution.actors.Client;
import edu.java.homework.hw11.enums.solution.actors.Cook;
import edu.java.homework.hw11.enums.solution.actors.Waiter;
import edu.java.homework.hw11.enums.solution.dish.Dish;

public class Restaurant {

	public static void main(String[] args) {

		// prepare dish, actors, threads
		Dish dish = new Dish("paella");
		Cook cook = new Cook("COOK", dish);
		Waiter waiter = new Waiter("WAITER", dish);
		Client client = new Client("CLIENT", dish);
		Thread cookThread = new Thread(cook, cook.getName());
		Thread waiterThread = new Thread(waiter, waiter.getName());
		Thread clientThread = new Thread(client, client.getName());

		// start threads

		waiterThread.start();
		cookThread.start();
		clientThread.start();

	}

}
